<!DOCTYPE html>
<html lang="zh">

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1">
		<link rel="icon" href="/favicon.ico">
		<title>我的求购-橙子校园</title>
		<meta name="keywords" content="校园二手,校园二手市场,大学二手,大学二手市场,大学生二手,大学二手网站,校园二手网站,校园二手app,桂林二手,桂林校园二手">
		<meta name="description" content="橙子校园网是由柚子校园团队开发的一个高校校园综合性的二手交易平台，校园二手网、大学生二手市场、大学生二手网，覆盖多所大学的大学生。涵盖二手手机、二手自行车、二手电动车、二手教材、二手书、二手电脑、二手数码产品等校园二手信息，满足大学生校园内的二手交易、二手求购的需求。买卖二手，尽在橙子校园">
		<link href="css/chunk-vendors.ca268116.css" rel="stylesheet">
		<link href="css/app.d8065f99.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="css/chunk-b5de9562.dd7e6dd9.css">
		<script charset="utf-8" src="js/chunk-b5de9562.ee00ad8d.js"></script>
		<link rel="stylesheet" type="text/css" href="css/chunk-6b68a8ad.8f760a62.css">
		<script charset="utf-8" src="js/chunk-6b68a8ad.16af8979.js"></script>
		<link rel="stylesheet" type="text/css" href="css/chunk-a06b1b72.5693c379.css">
		<script charset="utf-8" src="js/chunk-a06b1b72.6e8679d7.js"></script>
		<!--导入vue和ajax-->
		<link rel="stylesheet" type="text/css" href="http://www.layuicdn.com/layui/css/layui.css"/>
		<script src="https://www.layuicdn.com/layui/layui.js"></script>
		<script type="text/javascript" src="https://lib.baomitu.com/vue/2.6.12/vue.min.js"></script>
		<script type="text/javascript" src="https://cdn.bootcdn.net/ajax/libs/axios/0.12.0/axios.min.js"></script>
		<script type="text/javascript" src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>

	</head>

	<body>
		<div data-v-6505e6d8="" id="app">
			<!---->
			<div data-v-50de3c96="" data-v-6505e6d8="" class="wrap">
				<div data-v-509a7241="" data-v-50de3c96="" id="header">
					<div data-v-509a7241="" id="nav" class="page-container clearfix" style="background-color: rgb(255, 255, 255) !important;">
						<div data-v-509a7241="" id="logo" class="logo">
							<a data-v-509a7241="" href="/" target="_self" title="首页"><img data-v-509a7241="" src="img/logo_black.0cce830f.png"></a>
						</div>
						<ul data-v-509a7241="" class="nav-item clearfix fl">
							<li data-v-509a7241="">
								<a data-v-509a7241="" href="/" class="router-link-active">
									首页
								</a>
							</li>
							<li data-v-509a7241="">
								<a data-v-509a7241="" href="/goods" class="">
									二手
								</a>
							</li>
							<li data-v-509a7241="">
								<a data-v-509a7241="" href="/buy" class="">
									求购
								</a>
							</li>
							<li data-v-509a7241="">
								<a data-v-509a7241="" href="/merchant" class="">
									切换学校
								</a>
							</li>
							<li data-v-509a7241="">
								<a data-v-509a7241="" href="/news" class="">
									校园动态
								</a>
							</li>
							<li data-v-509a7241="">
								<div data-v-509a7241="" class="ivu-dropdown">
									<div class="ivu-dropdown-rel">
										<a data-v-509a7241="" href="javascript:void(0)" style="border: none;">
											更多
											<i data-v-509a7241="" class="ivu-icon ivu-icon-ios-arrow-down"></i></a>
									</div>
									<!---->
								</div>
							</li>
						</ul>
						<div data-v-509a7241="" class="user fr"><span data-v-509a7241="" class="ivu-avatar ivu-avatar-circle ivu-avatar-default ivu-avatar-image"><img src="https://api.youzixy.com/public/uploads/avatar/default2.png"></span>
							<a data-v-509a7241="" href="/user_info" class=""><span data-v-509a7241="" class="text center">个人中心</span></a><span data-v-509a7241="" class="text logout">退出</span>
							<!---->
							<a data-v-509a7241="" href="/login" class=""></a>
						</div>
						<ul data-v-509a7241="" class="nav-item clearfix fr" style="margin-right: 10px;">
							<li data-v-509a7241="">
								<div data-v-509a7241="" class="app-down ivu-dropdown">
									<div class="ivu-dropdown-rel">
										<a data-v-509a7241="" href="javascript:void(0)" class="app-down-menu" style="border: none;">
											APP
											<i data-v-509a7241="" class="ivu-icon ivu-icon-ios-arrow-down"></i></a>
									</div>
									<div class="ivu-select-dropdown" style="display: none;">
										<ul data-v-509a7241="" class="ivu-dropdown-menu">
											<div data-v-7180a6be="" data-v-509a7241="" class="app-down">
												<div data-v-7180a6be="" class="item-box">
													<div data-v-7180a6be="" class="item"><img data-v-7180a6be="" src="https://api.youzixy.com/public/uploads/attach/2019/10/08/5d9c2ef5218df.png">
														<div data-v-7180a6be="" class="text">公众号</div>
													</div>
													<div data-v-7180a6be="" class="item"><img data-v-7180a6be="" src="https://api.youzixy.com/public/uploads/attach/2019/10/19/5daaf2febb9b4.jpg">
														<div data-v-7180a6be="" class="text">小程序</div>
													</div>
													<div data-v-7180a6be="" class="item"><img data-v-7180a6be="" src="https://api.youzixy.com/public/uploads/attach/2019/10/15/5da590e12c753.png">
														<div data-v-7180a6be="" class="text">安卓</div>
													</div>
													<!---->
												</div>
											</div>
										</ul>
									</div>
								</div>
							</li>
							<li data-v-509a7241="">
								<div data-v-509a7241="" class="app-down release-menu ivu-dropdown">
									<div class="ivu-dropdown-rel" >
										<a data-v-509a7241="" href="javascript:void(0)" class="app-down-menu" style="border: none;">
											发布
											<i data-v-509a7241="" class="ivu-icon ivu-icon-ios-arrow-down"></i></a>
									</div>
									<div class="ivu-select-dropdown" style="display: none;">
										<ul data-v-509a7241="" class="ivu-dropdown-menu">
											<div data-v-509a7241="" class="item-box">
												<div data-v-509a7241="" class="item"><img data-v-509a7241="" src="img/release_goods.43323bdb.png" alt="">
													<div onclick="location.href='torelease_goods'" data-v-509a7241="" class="text">发布商品</div>
												</div>
												<div data-v-509a7241="" class="item"><img data-v-509a7241="" src="" alt="">
													<div onclick="location.href='torelease_buy'" data-v-509a7241="" class="text">发布求购</div>
												</div>
											</div>
										</ul>
									</div>
								</div>
							</li>
							<li data-v-509a7241="">
								<a data-v-509a7241="" href="/apply" class="">
									开通学校
								</a>
							</li>
						</ul>
					</div>
					<!---->
				</div>
				<div data-v-50de3c96="" class="content clearfix">
					<ul data-v-6a0c79b7="" data-v-50de3c96="" class="fl ivu-menu ivu-menu-light ivu-menu-vertical" style="width: 240px;">
						<li data-v-6a0c79b7="" class="ivu-menu-item-group">
							<div class="ivu-menu-item-group-title">个人中心</div>
							<ul>
								<li onclick="location.href='touser_info'" data-v-6a0c79b7="" class="ivu-menu-item"><i data-v-6a0c79b7="" class="ivu-icon ivu-icon-ios-folder-open"></i> 我的资料
								</li>
								<li onclick="location.href='tomy_goods'" data-v-6a0c79b7="" class="ivu-menu-item" ><i data-v-6a0c79b7="" class="ivu-icon ivu-icon-md-photos"></i> 我的商品
								</li>
								<li data-v-6a0c79b7="" class="ivu-menu-item ivu-menu-item-active ivu-menu-item-selected" ><i data-v-6a0c79b7="" class="ivu-icon ivu-icon-ios-paper"></i> 我的求购
								</li>
								<li data-v-6a0c79b7="" class="ivu-menu-item"><i data-v-6a0c79b7="" class="ivu-icon ivu-icon-ios-school"></i> 我要认证
								</li>
							</ul>
						</li>
					</ul>
					<div data-v-50de3c96="" class="content-box fr">
						<div v-for="buy in buys" data-v-50de3c96="" class="goods-card ivu-card ivu-card-bordered">
							<!---->
							<!---->
							<div class="ivu-card-body">
								<div data-v-50de3c96="" class="goods-item">
									<div data-v-50de3c96="" class="thumb-box"></div>
									<div data-v-50de3c96="" class="info-box">
										<a data-v-50de3c96="" href="/goods_detail?id=553" class="title" target="_blank">
											{{buy.pname}}
										</a>
										<div data-v-50de3c96="" class="bottom-info">
											<div data-v-50de3c96="" class="t-info"><span data-v-50de3c96="" class="price">￥{{buy.buyPrice}}</span><span data-v-50de3c96="">{{buy.bdate}}</span></div>
											<div data-v-50de3c96="" class="btn-group"><button data-v-50de3c96="" type="button" class="ivu-btn ivu-btn-default ivu-btn-small"><!----> <!----> <span>
                                        待审核
                                    </span></button>
												<!---->
												<!---->
												<!----><button data-v-50de3c96="" type="button" class="ivu-btn ivu-btn-error ivu-btn-small"><!----> <!----> <span @click="deleteBybid(buy.bid)">
                                        删除
                                    </span></button></div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div data-v-50de3c96="" class="load-more text-center"><button data-v-50de3c96="" type="button" class="ivu-btn ivu-btn-default"><!----> <!----> <span>加载更多</span></button></div>
					</div>
				</div>
				<div data-v-2fe6d1e3="" data-v-50de3c96="" class="common-footer">
					<div data-v-2fe6d1e3="" class="footerMain">
						<div data-v-2fe6d1e3="" class="fContact">
							<h3 data-v-2fe6d1e3="" class="fct">联系我们 / <span data-v-2fe6d1e3="">contact us</span></h3>
							<p data-v-2fe6d1e3="">Q 群：433981852</p>
							<p data-v-2fe6d1e3="">Q Q：184203000</p>
							<p data-v-2fe6d1e3="">地址：广西桂林电子科技大学东区</p>
						</div>
						<div data-v-2fe6d1e3="" class="fEwm"><img data-v-2fe6d1e3="" width="106" height="106" alt="微信公众号" src="https://api.youzixy.com/public/uploads/attach/2019/10/08/5d9c2ef5218df.png">
							<p data-v-2fe6d1e3="">关注微信公众平台</p>
						</div>
						<div data-v-2fe6d1e3="" class="fCall">
							<p data-v-2fe6d1e3="" class="callN">TEL:17602842068</p><span data-v-2fe6d1e3="" class="kfT">24小时在线客服</span>
							<a data-v-2fe6d1e3="" href="http://weibo.com/u/276233227/" target="_blank" class="fxl">新浪微博</a>
							<a data-v-2fe6d1e3="" href="tencent://message/?uin=307242951&amp;Site=QQ%E4%BA%A4%E8%B0%88&amp;Menu=yes" target="_blank" class="fqq">客服QQ</a>
							<div data-v-2fe6d1e3="" class="ivu-dropdown">
								<div class="ivu-dropdown-rel">
									<a data-v-2fe6d1e3="" href="javascript:void(0)" class="app-down-menu" style="border: none;">
										<a data-v-2fe6d1e3="" class="fwx tips">公众号二维码</a>
									</a>
								</div>
								<!---->
							</div>
						</div>
					</div>
					<p data-v-2fe6d1e3="" class="copyright">版权所有 © All Rights Reserved，
						<a href="http://www.beian.miit.gov.cn/" target="_blank">桂ICP备15000254号-1</a>
					</p>
					<div data-v-2fe6d1e3="" class="ivu-back-top" style="bottom: 150px; right: 30px;">
						<div data-v-2fe6d1e3="" id="gotop"><i data-v-2fe6d1e3="" class="ivu-icon ivu-icon-md-arrow-round-up"></i></div>
					</div>
				</div>
			</div>
		</div>

		<script>
			var v=new Vue({
				el:'#app',
				data:{
					buys:{}
				},
				created(){
					//查询所有当前用户的求购
					axios.get("selectBuyByUid?uid="+1).then(res=>{
						this.buys=res.data;
					})
				},
				methods:{
					deleteBybid(bid){
						layer.open({
							title: '提示'
							,content: '您确定删除么？'
							,btn:['确定','取消']
							,yes: function(index, layero){
								//根据pid删除，然后再刷新一遍这个页面
								$.post("/deleteBuyBybid",{bid:bid},function (res) {
									//删除商品成功
									alert(res.msg);
								})
								//刷新当前页面
								location.reload();
							}
						});
					}
				}
			});


		</script>


	</body>

</html>